<!DOCTYPE html>
<html>
    <head>
        <title>demo</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <style>
            body {
                font-family: Monospace;
                background-color: #f0f0f0;
                margin: 0px;
                overflow: hidden;
            }
        </style>
    </head>
    <body>
        <script src="https://cdn.bootcdn.net/ajax/libs/three.js/73/three.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/tween.js/0.11.0/Tween.min.js"></script>
		<script src="https://unpkg.com/three@0.73.1/examples/js/controls/TrackballControls.js"></script>
        <script src="https://cdn.bootcdn.net/ajax/libs/stats.js/10/Stats.min.js"></script>
        <script>

            var jsonstr = '[{"boxId":"942641801015336","x":-88.150002,"y":-104.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":1,"material":"","type":1,"place":200},{"boxId":"942641801015335","x":-32.650002,"y":-104.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":2,"material":"","type":1,"place":200},{"boxId":"942641801015334","x":22.850000,"y":-104.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":3,"material":"","type":1,"place":200},{"boxId":"942641801015333","x":78.349998,"y":-104.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":4,"material":"","type":1,"place":200},{"boxId":"942641801015332","x":-88.150002,"y":-104.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":5,"material":"","type":1,"place":200},{"boxId":"942641801015331","x":-32.650002,"y":-104.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":6,"material":"","type":1,"place":200},{"boxId":"942641801015330","x":22.850000,"y":-104.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":7,"material":"","type":1,"place":200},{"boxId":"942641801015329","x":78.349998,"y":-104.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":8,"material":"","type":1,"place":200},{"boxId":"942641801015328","x":-88.150002,"y":-104.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":9,"material":"","type":1,"place":200},{"boxId":"942641801015327","x":-32.650002,"y":-104.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":10,"material":"","type":1,"place":200},{"boxId":"942641801015326","x":22.850000,"y":-104.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":11,"material":"","type":1,"place":200},{"boxId":"942641801015325","x":78.349998,"y":-104.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":12,"material":"","type":1,"place":200},{"boxId":"942641801015324","x":-88.150002,"y":-104.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":13,"material":"","type":1,"place":200},{"boxId":"942641801015323","x":-32.650002,"y":-104.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":14,"material":"","type":1,"place":200},{"boxId":"942641801015322","x":22.850000,"y":-104.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":15,"material":"","type":1,"place":200},{"boxId":"942641801015321","x":78.349998,"y":-104.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":16,"material":"","type":1,"place":200},{"boxId":"942641801015320","x":-88.150002,"y":-53.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":17,"material":"","type":1,"place":200},{"boxId":"942641801015319","x":-32.650002,"y":-53.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":18,"material":"","type":1,"place":200},{"boxId":"942641801015318","x":22.850000,"y":-53.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":19,"material":"","type":1,"place":200},{"boxId":"942641801015317","x":78.349998,"y":-53.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":20,"material":"","type":1,"place":200},{"boxId":"942641801015316","x":-88.150002,"y":-53.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":21,"material":"","type":1,"place":200},{"boxId":"942641801015315","x":-32.650002,"y":-53.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":22,"material":"","type":1,"place":200},{"boxId":"942641801015314","x":22.850000,"y":-53.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":23,"material":"","type":1,"place":200},{"boxId":"942641801015313","x":78.349998,"y":-53.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":24,"material":"","type":1,"place":200},{"boxId":"942641801015312","x":-88.150002,"y":-53.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":25,"material":"","type":1,"place":200},{"boxId":"942641801015311","x":-32.650002,"y":-53.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":26,"material":"","type":1,"place":200},{"boxId":"942641801015310","x":22.850000,"y":-53.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":27,"material":"","type":1,"place":200},{"boxId":"942641801015309","x":78.349998,"y":-53.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":28,"material":"","type":1,"place":200},{"boxId":"942641801015308","x":-88.150002,"y":-53.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":29,"material":"","type":1,"place":200},{"boxId":"942641801015307","x":-32.650002,"y":-53.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":30,"material":"","type":1,"place":200},{"boxId":"942641801015306","x":22.850000,"y":-53.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":31,"material":"","type":1,"place":200},{"boxId":"942641801015305","x":78.349998,"y":-53.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":32,"material":"","type":1,"place":200},{"boxId":"942641801015304","x":-88.150002,"y":-2.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":33,"material":"","type":1,"place":200},{"boxId":"942641801015303","x":-32.650002,"y":-2.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":34,"material":"","type":1,"place":200},{"boxId":"942641801015302","x":22.850000,"y":-2.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":35,"material":"","type":1,"place":200},{"boxId":"942641801015301","x":78.349998,"y":-2.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":36,"material":"","type":1,"place":200},{"boxId":"942641801015300","x":-88.150002,"y":-2.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":37,"material":"","type":1,"place":200},{"boxId":"942641801015299","x":-32.650002,"y":-2.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":38,"material":"","type":1,"place":200},{"boxId":"942641801015298","x":22.850000,"y":-2.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":39,"material":"","type":1,"place":200},{"boxId":"942641801015297","x":78.349998,"y":-2.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":40,"material":"","type":1,"place":200},{"boxId":"942641801015296","x":-88.150002,"y":-2.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":41,"material":"","type":1,"place":200},{"boxId":"942641801015295","x":-32.650002,"y":-2.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":42,"material":"","type":1,"place":200},{"boxId":"942641801015294","x":22.850000,"y":-2.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":43,"material":"","type":1,"place":200},{"boxId":"942641801015293","x":78.349998,"y":-2.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":44,"material":"","type":1,"place":200},{"boxId":"942641801015292","x":-88.150002,"y":-2.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":45,"material":"","type":1,"place":200},{"boxId":"942641801015291","x":-32.650002,"y":-2.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":46,"material":"","type":1,"place":200},{"boxId":"942641801015290","x":22.850000,"y":-2.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":47,"material":"","type":1,"place":200},{"boxId":"942641801015289","x":78.349998,"y":-2.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":48,"material":"","type":1,"place":200},{"boxId":"942641801015288","x":-88.150002,"y":48.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":49,"material":"","type":1,"place":200},{"boxId":"942641801015287","x":-32.650002,"y":48.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":50,"material":"","type":1,"place":200},{"boxId":"942641801015286","x":22.850000,"y":48.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":51,"material":"","type":1,"place":200},{"boxId":"942641801015285","x":78.349998,"y":48.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":52,"material":"","type":1,"place":200},{"boxId":"942641801015284","x":-88.150002,"y":48.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":53,"material":"","type":1,"place":200},{"boxId":"942641801015283","x":-32.650002,"y":48.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":54,"material":"","type":1,"place":200},{"boxId":"942641801015282","x":22.850000,"y":48.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":55,"material":"","type":1,"place":200},{"boxId":"942641801015281","x":78.349998,"y":48.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":56,"material":"","type":1,"place":200},{"boxId":"942641801015280","x":-88.150002,"y":48.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":57,"material":"","type":1,"place":200},{"boxId":"942641801015279","x":-32.650002,"y":48.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":58,"material":"","type":1,"place":200},{"boxId":"942641801015278","x":22.850000,"y":48.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":59,"material":"","type":1,"place":200},{"boxId":"942641801015277","x":78.349998,"y":48.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":60,"material":"","type":1,"place":200},{"boxId":"942641801015276","x":-88.150002,"y":48.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":61,"material":"","type":1,"place":200},{"boxId":"942641801015275","x":-32.650002,"y":48.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":62,"material":"","type":1,"place":200},{"boxId":"942641801015274","x":22.850000,"y":48.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":63,"material":"","type":1,"place":200},{"boxId":"942641801015273","x":78.349998,"y":48.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":64,"material":"","type":1,"place":200},{"boxId":"942641801015272","x":-88.150002,"y":99.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":65,"material":"","type":1,"place":200},{"boxId":"942641801015271","x":-32.650002,"y":99.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":66,"material":"","type":1,"place":200},{"boxId":"942641801015270","x":22.850000,"y":99.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":67,"material":"","type":1,"place":200},{"boxId":"942641801015269","x":78.349998,"y":99.500000,"z":-652.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":68,"material":"","type":1,"place":200},{"boxId":"942641801015268","x":-88.150002,"y":99.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":69,"material":"","type":1,"place":200},{"boxId":"942641801015267","x":-32.650002,"y":99.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":70,"material":"","type":1,"place":200},{"boxId":"942641801015266","x":22.850000,"y":99.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":71,"material":"","type":1,"place":200},{"boxId":"942641801015265","x":78.349998,"y":99.500000,"z":-608.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":72,"material":"","type":1,"place":200},{"boxId":"942641801015264","x":-88.150002,"y":99.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":73,"material":"","type":1,"place":200},{"boxId":"942641801015263","x":-32.650002,"y":99.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":74,"material":"","type":1,"place":200},{"boxId":"942641801015262","x":22.850000,"y":99.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":75,"material":"","type":1,"place":200},{"boxId":"942641801015261","x":78.349998,"y":99.500000,"z":-564.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":76,"material":"","type":1,"place":200},{"boxId":"942641801015260","x":-88.150002,"y":99.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":77,"material":"","type":1,"place":200},{"boxId":"942641801015259","x":-32.650002,"y":99.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":78,"material":"","type":1,"place":200},{"boxId":"942641801015258","x":22.850000,"y":99.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":79,"material":"","type":1,"place":200},{"boxId":"942641801015257","x":78.349998,"y":99.500000,"z":-520.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":80,"material":"","type":1,"place":200},{"boxId":"942641801015256","x":-88.150002,"y":-104.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":81,"material":"","type":1,"place":200},{"boxId":"942641801015255","x":-32.650002,"y":-104.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":82,"material":"","type":1,"place":200},{"boxId":"942641801015254","x":-88.150002,"y":-53.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":83,"material":"","type":1,"place":200},{"boxId":"942641801015253","x":-32.650002,"y":-53.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":84,"material":"","type":1,"place":200},{"boxId":"942641801015252","x":-88.150002,"y":-2.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":85,"material":"","type":1,"place":200},{"boxId":"942641801015251","x":-32.650002,"y":-2.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":86,"material":"","type":1,"place":200},{"boxId":"942641801015250","x":-88.150002,"y":48.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":87,"material":"","type":1,"place":200},{"boxId":"942641801015249","x":-32.650002,"y":48.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":88,"material":"","type":1,"place":200},{"boxId":"942641801015248","x":-88.150002,"y":99.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":89,"material":"","type":1,"place":200},{"boxId":"942641801015247","x":-32.650002,"y":99.500000,"z":-476.500000,"width":44.000000,"height":51.000000,"length":55.500000,"weight":137.000000,"platform":"platform13","order":90,"material":"","type":1,"place":200},{"boxId":"942641801014503","x":-73.650002,"y":-106.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":91,"material":"","type":1,"place":100},{"boxId":"942641801014500","x":10.850000,"y":-106.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":92,"material":"","type":1,"place":100},{"boxId":"942641801014509","x":-73.650002,"y":-106.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":93,"material":"","type":1,"place":100},{"boxId":"942641801014572","x":10.850000,"y":-106.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":94,"material":"","type":1,"place":100},{"boxId":"942641801014545","x":-73.650002,"y":-106.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":95,"material":"","type":1,"place":100},{"boxId":"942641801014548","x":10.850000,"y":-106.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":96,"material":"","type":1,"place":100},{"boxId":"942641801014530","x":-73.650002,"y":-58.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":97,"material":"","type":1,"place":100},{"boxId":"942641801014506","x":10.850000,"y":-58.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":98,"material":"","type":1,"place":100},{"boxId":"942641801014512","x":-73.650002,"y":-58.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":99,"material":"","type":1,"place":100},{"boxId":"942641801014566","x":10.850000,"y":-58.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":100,"material":"","type":1,"place":100},{"boxId":"942641801014533","x":-73.650002,"y":-58.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":101,"material":"","type":1,"place":100},{"boxId":"942641801014521","x":10.850000,"y":-58.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":102,"material":"","type":1,"place":100},{"boxId":"942641801014560","x":-73.650002,"y":-10.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":103,"material":"","type":1,"place":100},{"boxId":"942641801014527","x":10.850000,"y":-10.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":104,"material":"","type":1,"place":100},{"boxId":"942641801014578","x":-73.650002,"y":-10.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":105,"material":"","type":1,"place":100},{"boxId":"942641801014515","x":10.850000,"y":-10.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":106,"material":"","type":1,"place":100},{"boxId":"942641801014542","x":-73.650002,"y":-10.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":107,"material":"","type":1,"place":100},{"boxId":"942641801014524","x":10.850000,"y":-10.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":108,"material":"","type":1,"place":100},{"boxId":"942641801014518","x":-73.650002,"y":38.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":109,"material":"","type":1,"place":100},{"boxId":"942641801014554","x":10.850000,"y":38.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":110,"material":"","type":1,"place":100},{"boxId":"942641801014584","x":-73.650002,"y":38.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":111,"material":"","type":1,"place":100},{"boxId":"942641801014587","x":10.850000,"y":38.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":112,"material":"","type":1,"place":100},{"boxId":"942641801014593","x":-73.650002,"y":38.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":113,"material":"","type":1,"place":100},{"boxId":"942641801014596","x":10.850000,"y":38.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":114,"material":"","type":1,"place":100},{"boxId":"942641801014650","x":-73.650002,"y":86.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":115,"material":"","type":1,"place":100},{"boxId":"942641801014665","x":10.850000,"y":86.000000,"z":-412.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":116,"material":"","type":1,"place":100},{"boxId":"942641801014659","x":-73.650002,"y":86.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":117,"material":"","type":1,"place":100},{"boxId":"942641801014653","x":10.850000,"y":86.000000,"z":-327.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":118,"material":"","type":1,"place":100},{"boxId":"942641801014656","x":-73.650002,"y":86.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":119,"material":"","type":1,"place":100},{"boxId":"942641801014599","x":10.850000,"y":86.000000,"z":-243.250000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":120,"material":"","type":1,"place":100},{"boxId":"942641801014590","x":-73.650002,"y":-106.000000,"z":-158.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":121,"material":"","type":1,"place":100},{"boxId":"942641801014662","x":-73.650002,"y":-58.000000,"z":-158.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":122,"material":"","type":1,"place":100},{"boxId":"942641801014647","x":-73.650002,"y":-10.000000,"z":-158.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":123,"material":"","type":1,"place":100},{"boxId":"942641801014668","x":-73.650002,"y":38.000000,"z":-158.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":124,"material":"","type":1,"place":100},{"boxId":"942641801014644","x":-73.650002,"y":86.000000,"z":-158.750000,"width":84.500000,"height":48.000000,"length":84.500000,"weight":56.500000,"platform":"platform07","order":125,"material":"","type":1,"place":100},{"boxId":"942641801014685","x":5.100000,"y":-102.000000,"z":-164.500000,"width":73.000000,"height":56.000000,"length":73.000000,"weight":142.899994,"platform":"platform07","order":126,"material":"","type":1,"place":100},{"boxId":"942641801014686","x":-64.900002,"y":-93.000000,"z":-65.500000,"width":102.000000,"height":74.000000,"length":102.000000,"weight":397.000000,"platform":"platform07","order":127,"material":"","type":1,"place":100},{"boxId":"942641801014692","x":-96.900002,"y":118.000000,"z":-435.500000,"width":38.000000,"height":16.000000,"length":38.000000,"weight":35.049999,"platform":"platform05","order":128,"material":"","type":1,"place":100},{"boxId":"942641801014693","x":-58.900002,"y":118.000000,"z":-435.500000,"width":38.000000,"height":16.000000,"length":38.000000,"weight":35.029999,"platform":"platform05","order":129,"material":"","type":1,"place":100},{"boxId":"942641801014694","x":-20.900000,"y":118.000000,"z":-435.500000,"width":38.000000,"height":16.000000,"length":38.000000,"weight":34.919998,"platform":"platform05","order":130,"material":"","type":1,"place":100},{"boxId":"942641801014683","x":83.099998,"y":-99.000000,"z":-458.500000,"width":60.000000,"height":62.000000,"length":80.000000,"weight":56.000000,"platform":"platform03","order":131,"material":"","type":1,"place":100},{"boxId":"942641801014681","x":-58.299999,"y":2.450000,"z":-77.949997,"width":77.099998,"height":116.900002,"length":115.199997,"weight":259.500000,"platform":"platform03","order":132,"material":"","type":1,"place":200},{"boxId":"942641801014682","x":37.849998,"y":-71.599998,"z":-70.400002,"width":77.099998,"height":116.800003,"length":115.199997,"weight":260.000000,"platform":"platform03","order":133,"material":"","type":1,"place":100},{"boxId":"942641801013477","x":93.150002,"y":-54.750000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.650000,"platform":"platform08","order":134,"material":"","type":1,"place":100},{"boxId":"942641801013479","x":93.150002,"y":-28.250000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.650000,"platform":"platform08","order":135,"material":"","type":1,"place":100},{"boxId":"942641801011681","x":93.150002,"y":-1.750000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":136,"material":"","type":1,"place":100},{"boxId":"942641801011697","x":93.150002,"y":24.750000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":137,"material":"","type":1,"place":100},{"boxId":"942641801011701","x":93.150002,"y":51.250000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":138,"material":"","type":1,"place":100},{"boxId":"942641801011687","x":93.150002,"y":77.750000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":139,"material":"","type":1,"place":100},{"boxId":"942641801011709","x":93.150002,"y":104.250000,"z":-478.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":140,"material":"","type":1,"place":100},{"boxId":"942641801011698","x":93.150002,"y":-54.750000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":141,"material":"","type":1,"place":100},{"boxId":"942641801011692","x":93.150002,"y":-28.250000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":142,"material":"","type":1,"place":100},{"boxId":"942641801011707","x":93.150002,"y":-1.750000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":143,"material":"","type":1,"place":100},{"boxId":"942641801011673","x":93.150002,"y":24.750000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":144,"material":"","type":1,"place":100},{"boxId":"942641801013475","x":93.150002,"y":51.250000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":145,"material":"","type":1,"place":100},{"boxId":"942641801013478","x":93.150002,"y":77.750000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":146,"material":"","type":1,"place":100},{"boxId":"942641801013485","x":93.150002,"y":104.250000,"z":-437.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":147,"material":"","type":1,"place":100},{"boxId":"942641801013483","x":93.150002,"y":-116.750000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":148,"material":"","type":1,"place":100},{"boxId":"942641801014631","x":93.150002,"y":-116.750000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":149,"material":"","type":1,"place":100},{"boxId":"942641801014633","x":93.150002,"y":-116.750000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":150,"material":"","type":1,"place":100},{"boxId":"942641801014628","x":93.150002,"y":-90.250000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":151,"material":"","type":1,"place":100},{"boxId":"942641801014677","x":93.150002,"y":-90.250000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":152,"material":"","type":1,"place":100},{"boxId":"942641801014676","x":93.150002,"y":-90.250000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":153,"material":"","type":1,"place":100},{"boxId":"942641801014673","x":93.150002,"y":-63.750000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":154,"material":"","type":1,"place":100},{"boxId":"942641801014670","x":93.150002,"y":-63.750000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":155,"material":"","type":1,"place":100},{"boxId":"942641801014632","x":93.150002,"y":-63.750000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":156,"material":"","type":1,"place":100},{"boxId":"942641801014629","x":93.150002,"y":-37.250000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.600000,"platform":"platform08","order":157,"material":"","type":1,"place":100},{"boxId":"942641801011690","x":93.150002,"y":-37.250000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":158,"material":"","type":1,"place":100},{"boxId":"942641801011711","x":93.150002,"y":-37.250000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":159,"material":"","type":1,"place":100},{"boxId":"942641801011686","x":93.150002,"y":-10.750000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":160,"material":"","type":1,"place":100},{"boxId":"942641801011675","x":93.150002,"y":-10.750000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":161,"material":"","type":1,"place":100},{"boxId":"942641801011715","x":93.150002,"y":-10.750000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":162,"material":"","type":1,"place":100},{"boxId":"942641801011712","x":93.150002,"y":15.750000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":163,"material":"","type":1,"place":100},{"boxId":"942641801011685","x":93.150002,"y":15.750000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":164,"material":"","type":1,"place":100},{"boxId":"942641801013484","x":93.150002,"y":15.750000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":165,"material":"","type":1,"place":100},{"boxId":"942641801013473","x":93.150002,"y":42.250000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":166,"material":"","type":1,"place":100},{"boxId":"942641801013482","x":93.150002,"y":42.250000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":167,"material":"","type":1,"place":100},{"boxId":"942641801013474","x":93.150002,"y":42.250000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":168,"material":"","type":1,"place":100},{"boxId":"942641801013476","x":93.150002,"y":68.750000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":169,"material":"","type":1,"place":100},{"boxId":"942641801013472","x":93.150002,"y":68.750000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":170,"material":"","type":1,"place":100},{"boxId":"942641801013480","x":93.150002,"y":68.750000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":171,"material":"","type":1,"place":100},{"boxId":"942641801013481","x":93.150002,"y":95.250000,"z":-397.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":172,"material":"","type":1,"place":100},{"boxId":"942641801014678","x":93.150002,"y":95.250000,"z":-356.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":173,"material":"","type":1,"place":100},{"boxId":"942641801014675","x":93.150002,"y":95.250000,"z":-316.250000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":174,"material":"","type":1,"place":100},{"boxId":"942641801014671","x":93.150002,"y":-116.750000,"z":-275.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":175,"material":"","type":1,"place":100},{"boxId":"942641801014674","x":93.150002,"y":-90.250000,"z":-275.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":176,"material":"","type":1,"place":100},{"boxId":"942641801014630","x":93.150002,"y":-63.750000,"z":-275.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":177,"material":"","type":1,"place":100},{"boxId":"942641801014672","x":93.150002,"y":-37.250000,"z":-275.750000,"width":33.500000,"height":26.500000,"length":40.500000,"weight":9.550000,"platform":"platform08","order":178,"material":"","type":1,"place":100}]';
			var jsonstr2 = '{"container_length":1349.000000,"container_width":231.800003,"container_height":260.000000,"container_max_load":null,"container_type_name":"45"}'
            var objectArray= JSON.parse(jsonstr);
			var truckJsonObj = JSON.parse(jsonstr2);
            var container, stats;
            var camera, controls, scene, projector, renderer;
            var objects = [], plane;
            var mouse = new THREE.Vector2(), offset = new THREE.Vector3(), INTERSECTED, SELECTED; 
            init();
            animate();
            function init() {
                container = document.createElement( 'div' );
                document.body.appendChild( container );
                camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 1, 10000 );
                camera.position.x = -600;
                camera.position.y = 400;
                camera.position.z = 1000;
                controls = new THREE.TrackballControls( camera );
                controls.rotateSpeed = 1.0;
                controls.zoomSpeed = 1.2;
                controls.panSpeed = 0.8;
                controls.noZoom = false;
                controls.noPan = true;
                controls.staticMoving = false;
                controls.dynamicDampingFactor = 0.3;
                scene = new THREE.Scene();
                var ambientLight = new THREE.AmbientLight( Math.random() *0xffffff );
                scene.add( ambientLight );
                var directionalLight = new THREE.DirectionalLight( Math.random() * 0xffffff );
                directionalLight.position.set( 0, 1, 0 );
                scene.add( directionalLight );
                var pointLight = new THREE.PointLight( 0xff0000, 1, 500 );
                pointLight.position.set( 0, 0, -200 );
                scene.add( pointLight );

                container_length = truckJsonObj.container_length;
                container_width = truckJsonObj.container_width;
                container_height = truckJsonObj.container_height;
                var cube_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( container_width, container_height, container_length, 1,1,1 ), 
                    new THREE.MeshBasicMaterial( { color:0xefb73e, wireframe:true } )
                );
                cube_1.position.x = 0;
                cube_1.position.y = 0;
                cube_1.position.z = 0;
                scene.add( cube_1 );

                truck_head_length = 145;
                var truck_head_1 = new THREE.Mesh(
                    new THREE.BoxGeometry( 200, 100, truck_head_length, 1, 1, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_1.position.x = 0;
                truck_head_1.position.y = -50;
                truck_head_1.position.z = -(container_length/2 + truck_head_length/2);
                scene.add( truck_head_1 );
                
                truck_head_length_2 = 80;
                var truck_head_2 = new THREE.Mesh(
                    new THREE.BoxGeometry( 170, 60, truck_head_length_2, 1, 0, 5 ), 
                    new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe:true } )
                );
                truck_head_2.position.x = 0;
                truck_head_2.position.y = 30;
                truck_head_2.position.z = -(container_length/2 + truck_head_length_2/2);
                scene.add( truck_head_2 );
                
                truck_head_chimney_radius = 7;
                var truck_head_chimney1 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney1.position.x = 100;
                truck_head_chimney1.position.y = 50;
                truck_head_chimney1.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney1 );
                
                var truck_head_chimney2 = new THREE.Mesh(
                    new THREE.CylinderGeometry( truck_head_chimney_radius, truck_head_chimney_radius, 300, 20 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_head_chimney2.position.x = -100;
                truck_head_chimney2.position.y = 50;
                truck_head_chimney2.position.z = -(container_length/2 + truck_head_chimney_radius/2);
                scene.add( truck_head_chimney2 );
        
                var truck_wheel_1 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_1.position.x = 110;
                truck_wheel_1.position.y = -100;
                truck_wheel_1.position.z = -(container_length/2 + truck_head_length_2/2 + 20) ;
                truck_wheel_1.rotation.x = 0;
                truck_wheel_1.rotation.y = 0;
                truck_wheel_1.rotation.z = 1.6;
                scene.add( truck_wheel_1 );
                
                var truck_wheel_2 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_2.position.x = -110;
                truck_wheel_2.position.y = -100;
                truck_wheel_2.position.z = -(container_length/2 + truck_head_length_2/2 + 20);
                truck_wheel_2.rotation.x = 0;
                truck_wheel_2.rotation.y = 0;
                truck_wheel_2.rotation.z = 1.6;
                scene.add( truck_wheel_2 );

                offset_2 = -240;
                var truck_wheel_5 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_5.position.x = container_width/2 + 5;
                truck_wheel_5.position.y = -100;
                truck_wheel_5.position.z = (container_length/2 + truck_head_length_2/2 + offset_2) ;
                truck_wheel_5.rotation.x = 0;
                truck_wheel_5.rotation.y = 0;
                truck_wheel_5.rotation.z = 1.6;
                scene.add( truck_wheel_5 );

                var truck_wheel_6 = new THREE.Mesh(new THREE.CylinderGeometry( 50, 50, 20, 50 ), 
                    new THREE.MeshBasicMaterial( { color:0xffffff, wireframe:true } )
                );
                truck_wheel_6.position.x = -container_width/2 - 5;
                truck_wheel_6.position.y = -100;
                truck_wheel_6.position.z = (container_length/2 + truck_head_length_2/2 + offset_2);
                truck_wheel_6.rotation.x = 0;
                truck_wheel_6.rotation.y = 0;
                truck_wheel_6.rotation.z = 1.6;
                scene.add( truck_wheel_6 );

                for (var i in objectArray) {
                    if (objectArray[i].type==2) {
						var cylinderTopR = objectArray[i].length / 2;
						var cylinderHeight = objectArray[i].height;
						if (objectArray[i].place == 1 || objectArray[i].place == 2)
						{
							cylinderHeight = objectArray[i].width;
						}
						
                        var object2 = new THREE.Mesh(
						    new THREE.CylinderGeometry(cylinderTopR, cylinderTopR, cylinderHeight, 60),
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object2.position.x = objectArray[i].x;
                        object2.position.y = objectArray[i].y;
                        object2.position.z = objectArray[i].z;
                        if (objectArray[i].place==1) {
                            object2.rotation.z = 55;
                        }
                        if (objectArray[i].place==2) {
                            object2.rotation.x = 55;
                        }
                        object2.width = objectArray[i].width;
                        object2.height = objectArray[i].height;
                        object2.length = objectArray[i].length;
                        object2.weight = objectArray[i].weight;
                        object2.platform = objectArray[i].platform;
                        object2.order = objectArray[i].order;
                        object2.materialInfo = objectArray[i].material;
                        object2.boxId = objectArray[i].boxId;
                        object2.type = objectArray[i].type;
                        object2.place = objectArray[i].place;
                        scene.add( object2 );
                        objects.push( object2 );
                    }
                    if (objectArray[i].type==1) {
						if (objectArray[i].place == 200)
						{
							var box_length = objectArray[i].width;
                            var box_width = objectArray[i].length;
						}
						else
						{
							var box_length = objectArray[i].length;
							var box_width = objectArray[i].width;
						}
						var box_height = objectArray[i].height;
                        var object = new THREE.Mesh(
                            new THREE.BoxGeometry( box_width, box_height, box_length, 1, 1, 1 ), 
                            new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff , wireframe:false } ) 
                        ); 
                        object.position.x = objectArray[i].x;
                        object.position.y = objectArray[i].y;
                        object.position.z = objectArray[i].z;
						object.length = objectArray[i].length;
						object.width = objectArray[i].width;
						object.height = objectArray[i].height;
                        object.weight = objectArray[i].weight;
                        object.platform = objectArray[i].platform;
                        object.order = objectArray[i].order;
                        object.materialInfo = objectArray[i].material;
                        object.boxId = objectArray[i].boxId;
                        object.type = objectArray[i].type;
                        object.place = objectArray[i].place;
                        scene.add( object );
                        objects.push( object );
                    }
                }

                plane = new THREE.Mesh(
                    new THREE.PlaneGeometry( 2000, 2000, 8, 8 ),
                    new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } )
                );
                plane.visible = true;
                scene.add( plane );
                projector = new THREE.Projector();
                renderer = new THREE.WebGLRenderer( { antialias: true } );
                renderer.sortObjects = false;
                renderer.setSize( window.innerWidth, window.innerHeight );
                renderer.shadowMapEnabled = true;
                renderer.shadowMapType = THREE.PCFShadowMap;
                container.appendChild( renderer.domElement );

                stats = new Stats();
                stats.domElement.style.position = 'absolute';
                stats.domElement.style.top = '0px';
                container.appendChild( stats.domElement );

                window.addEventListener( 'resize', onWindowResize, false );
                renderer.domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
                renderer.domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
                renderer.domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
            }

            function onDocumentMouseMove( event ) {
                event.preventDefault();
                mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
                mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    if ( INTERSECTED != intersects[ 0 ].object ) {
                        INTERSECTED = intersects[ 0 ].object;
                        plane.position.copy( INTERSECTED.position );
                        plane.lookAt( camera.position );
                    }
                    container.style.cursor = 'pointer';
                } else {
                    container.style.cursor = 'auto';
                }
            }

            function onDocumentMouseDown( event ) {
                event.preventDefault();
                var vector = new THREE.Vector3( mouse.x, mouse.y, 0.5 );
                projector.unprojectVector( vector, camera );
                var raycaster = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );
                var intersects = raycaster.intersectObjects( objects );
                if ( intersects.length > 0 ) {
                    controls.enabled = false;  
                    SELECTED = intersects[ 0 ].object;
                    var info = '<B>' + 
                        'boxId: ' + SELECTED.boxId +
                        '</br> x: ' + SELECTED.position.x + 
                        '</br> y: ' + SELECTED.position.y + 
                        '</br> z: ' + SELECTED.position.z + 
                        '</br> width: ' + SELECTED.width + 
                        '</br> height: ' + SELECTED.height + 
                        '</br> length: ' + SELECTED.length + 
                        '</br> weight: ' + SELECTED.weight +
                        '</br> platform: ' + SELECTED.platform +
                        '</br> order: ' + SELECTED.order +
                        '</br> material: ' + SELECTED.materialInfo + 
                        '</br> type: ' + SELECTED.type + 
                        '</br> place: ' + SELECTED.place + 
                        '</B>' +
                        '</br>' + 
                        '--------------------------' + 
                        '</br>' +
                        'type(1:箱体 2:圆柱体)' +
                        '</br>' +
                        'place(1:品字型 2:田字型)';
                    $("#objectInfo").html(info);
                }
            }

            function onDocumentMouseUp( event ) {
                event.preventDefault();
                controls.enabled = true;
                if ( INTERSECTED ) {
                    plane.position.copy( INTERSECTED.position );
                    SELECTED = null;
                }
                container.style.cursor = 'auto';
            }

            function onWindowResize() {
                camera.aspect = window.innerWidth / window.innerHeight;
                camera.updateProjectionMatrix();
                renderer.setSize( window.innerWidth, window.innerHeight );
            }

            function animate() {
                requestAnimationFrame( animate );
                render();
                stats.update();
            }

            function render() {
                controls.update();
                renderer.render( scene, camera );
            }

        </script>
        <div id="objectInfo" class="a2"><br/>点击物体获取相关属性</div>
        <style>
            .a2{position:absolute; left:20px; top:50px; bottom:0px; width:180px; height:250px; z-index:9999; background: #00FFFF; font-weight:bold; }
        </style>
    </body>
</html>